<template>
	<div class="runTable-container">
		<h1>表格</h1>
		<el-table :data="tableData" border style="width: 100%">
			<el-table-column prop="unit" width="180"> </el-table-column>
			<el-table-column prop="successNum" :label="label1" width="180"> </el-table-column>
			<el-table-column prop="failNum" :label="label2"> </el-table-column>
		</el-table>
	</div>
</template>

<script>
export default {
	name: "runTable",
	data() {
		return {
			label1: "成功数",
			label2: "失败数",
			tableData: [
				{
					unit: "单元1",
					successNum: 0,
					failNum: 0,
				},
				{
					unit: "单元2",
					successNum: 0,
					failNum: 0,
				},
				{
					unit: "单元3",
					successNum: 0,
					failNum: 0,
				},
				{
					unit: "单元4",
					successNum: 0,
					failNum: 0,
				},
				{
					unit: "单元5",
					successNum: 0,
					failNum: 0,
				},
			],
		};
	},
	components: {},
	methods: {},
};
</script>

<style scoped></style>
